﻿@using Mulala.Cavan.Presentation.Mvc.Controller
@model Mulala.Cavan.Presentation.Mvc.ViewModel.IHomeViewModel
@{
    ViewBag.Title = "首页";
}
@section header{
    @Styles.Render("~/Content/themes/main/index")
}
<div class="nav">
    <div class="nav_left">
        <div class="left_text">
            这儿有
            @Html.ActionLink(@Model.CorporationTotal.ToString(), ActionConst.LIST, ControllerConst.CORPORATION)个家政公司，
            @Html.ActionLink(@Model.NannyTotal.ToString(), ActionConst.LIST, ControllerConst.CORPORATION)个保姆，
            @Html.ActionLink(@Model.NurseTotal.ToString(), ActionConst.LIST, ControllerConst.CORPORATION)个月嫂。</div>
        <div class="left_search">
            @{
                Html.RenderAction("searchbox", "Home");
            }
        </div>
        <div class="left_nav_1">
            @{
                Html.RenderAction("goldcorporation", "Corporation");
            }
        </div>
        <div class="left_nav_1 baomu">
            @{
                Html.RenderAction("goldnanny", "nanny");
            }
        </div>
        <div class="left_nav_1 yuesao">
            @{
                Html.RenderAction("goldnurse", "nanny");
            }
        </div>
        <div class="left_nav_1">
            <div id="focus001" style="padding-top: 5px; padding-left: 15px;">
                <ul>
                    <li><a href="#" target="_blank">
                        <img src="../../Images/Main/bommt1.gif" width="645" height="210" alt="公司" /></a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="nav_right">
        <div class="login">
            @Html.Partial("_loginBoxPartial", (IUserAccountViewModel)@Model)
        </div>
        <div class="quetion">
            @Html.Partial("_helpPartial")
        </div>
        <div class="quetion">
            @{
                Html.RenderAction("homenotice", "Notice");
            }
        </div>
        <div class="quetion found">
            <ul>
                <li><a href="#">你在姆拉拉找过的家政人员</a></li>
                <li>
                    <img src="../../Images/Main/hua.jpg" alt="花朵" /></li>
            </ul>
        </div>
        <div class="quetion hudeng">
            <div id="div1">
                <img src="../../Images/Main/bommtRight1.jpg" width="266" height="215" alt="公司" /></div>
            <div id="div2" style="display: none;">
                <img src="../../Images/Main/bommtRight2.gif" width="266" height="215" alt="公司" /></div>
            <div id="div3" style="display: none;">
                <img src="../../Images/Main/bommtRight3.jpg" width="266" height="215" alt="公司" /></div>
            <div id="div4" style="display: none;">
                <img src="../../Images/Main/bommtRight4.jpg" width="266" height="215" alt="公司" /></div>
        </div>
    </div>
</div>
<div class="xian">
</div>
@section scripts{
    @Scripts.Render("~/bundles/main/index")
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript">
        $(function () {
            $("form[action$='login']").submit(function () {
                $.post($(this).attr("action"), $(this).serialize(), function (response) {
                });

                return true;
            });
        })
    </script>
}
